| Get the address of a module using DumpMT |
| Step 1: Find a MethodTable within the module |
0:003> !Name2EE basedebug.exe basedebug.MyClass
--------------------------------------
MethodTable: 003751a4
EEClass: 031410ec
Name: basedebug.MyClass
|
| Step 2: Dump the MethodTable to get the module address |
0:003> !DumpMT 003751a4
EEClass : 031410ec
Module : 0014ea50
Name: basedebug.MyClass
mdToken: 02000003 (G:\Projects\VC\basedebug\bin\Debug\basedebug.exe)
MethodTable Flags : c0000
Number of IFaces in IFaceMap : 0
Interface Map : 003751f0
Slots in VTable : 8
|
| Step 3: Dump the module information |
0:003> !DumpModule 0014ea50
Name G:\Projects\VC\basedebug\bin\Debug\basedebug.exe
dwFlags 00003280
Attribute PEFile Edit&Continue
Assembly 0014c620
LoaderHeap* 0014ead8
TypeDefToMethodTableMap* 03150010
TypeRefToMethodTableMap* 0315001c
MethodDefToDescMap* 03150060
FieldDefToDescMap* 03150090
MemberRefToDescMap* 03150098
FileReferencesMap* 031500e0
AssemblyReferencesMap* 031500e4
MetaData starts at 00402204 (0x658 bytes)
|